package com.hospital.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author WuLiting
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_case_medicine")
public class CaseMedicine extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 本次诊断的开药情况
     */
    @TableId(value = "case_medicine_id", type = IdType.ID_WORKER_STR)
    private String caseMedicineId;

    /**
     * 病例ID
     */
    private String caseId;

    /**
     * 药品ID
     */
    private String medicineId;

    /**
     * 数量
     */
    private Integer amount;

    /**
     * 备注(用法用量或者其他什么)
     */
    private String remark;

    @TableField(exist = false)
    private String medicineName;

    @TableField(exist = false)
    private String price;

}
